//
//  DetailViewController.m
//  17-homework-addressBook
//
//  Created by 王道林 on 16/8/6.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _imagePicture.image = [UIImage imageNamed:_contect.picName];
    _LableName.text = [NSString stringWithFormat:@"姓名: %@", _contect.name];
    _LableAddress.text = @"吉林省磐石市最牛逼的地方";
    _LablePhoneNumber.text = [NSString stringWithFormat:@"电话号: %@",_contect.phoneNumber];
    NSString *ageAndGender = [NSString stringWithFormat:@"性别:%@  年纪:%@", _contect.gender, _contect.age];
    _LableAgeGender.text = ageAndGender;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)setContect:(Contecter *)contect
{
    _contect = contect;
}








/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
